<<<<<<< .mine
<?php // Register sidebars
  
// Check for widgets in widget-ready areas http://wordpress.org/support/topic/190184?replies=7#post-808787
// Thanks to Chaos Kaizer http://blog.kaizeku.com/
  
      function is_sidebar_active( $index = 1){
       $sidebars = wp_get_sidebars_widgets();
       $key  = (string) 'sidebar-'.$index;
       return (isset($sidebars[$key]));
      }
// Lets layout the sidebars for widgets	  
function gp_widgets_init() {
	  
// Top Right Header language
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Page Top Right', 'CFAStudio' ), 
    'id' => 'sidebar-topright',
	'description'   => __( 'Top Right where the Language Switcher Sits', 'CFAStudio' ),
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));

// Blog Left Column    
if(function_exists('register_sidebar'))
    register_sidebar(array(
    'name' => __( 'Blog Left Column', 'CFAStudio' ), 
    'description'   => __( 'Left column with an active area of 180 pixels wide for your blog', 'CFAStudio' ),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
));

// Page Left Column	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Page Left Column', 'CFAStudio' ), 
	'description'   => __( 'Left column with an active area of 180 pixels wide for your blog', 'CFAStudio' ),
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
/*
// Blog Right Column	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Blog Right Column', 'CFAStudio' ), 
	'description'   => __( 'Right column with an active area of 180 pixels wide for your blog', 'CFAStudio' ),
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Page Right Column	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Page Right Column', 'CFAStudio' ), 
	'description'   => __( 'Left column with an active area of 180 pixels wide for your blog', 'CFAStudio' ),
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));

// Front Page Top One	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Top One', 'CFAStudio' ), 
	'description'   => __( 'Front Page Top widget one.', 'CFAStudio' ),
	'id' => 'top-1',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Top Two
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Top Two', 'CFAStudio' ), 
	'description'   => __( 'Front Page Top widget two.', 'CFAStudio' ),
	'id' => 'top-2',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Top Three	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Top Three', 'CFAStudio' ), 
	'description'   => __( 'Front Page Top widget three.', 'CFAStudio' ),
	'id' => 'top-3',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Top Four	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Top Four', 'CFAStudio' ), 
	'description'   => __( 'Front Page Top widget four.', 'CFAStudio' ),
	'id' => 'top-4',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Bottom One	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Bottom One', 'CFAStudio' ), 
	'description'   => __( 'Front Page Bottom widget one.', 'CFAStudio' ),
	'id' => 'bottom-1',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Bottom Two
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Bottom Two', 'CFAStudio' ), 
	'description'   => __( 'Front Page Bottom widget two.', 'CFAStudio' ),
	'id' => 'bottom-2',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Bottom Three	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Bottom Three', 'CFAStudio' ), 
	'description'   => __( 'Front Page Bottom widget three.', 'CFAStudio' ),
	'id' => 'bottom-3',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Bottom Four	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Bottom Four', 'CFAStudio' ), 
	'description'   => __( 'Front Page Bottom widget four.', 'CFAStudio' ),
	'id' => 'bottom-4',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
*/
// Footer One	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Footer One', 'CFAStudio' ), 
	'description'   => __( 'First footer widget area', 'CFAStudio' ),
	'id' => 'footer-1',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Footer Two	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Footer Two', 'CFAStudio' ), 
	'description'   => __( 'Second footer widget area', 'CFAStudio' ),
	'id' => 'footer-2',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Footer Three	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Footer Three', 'CFAStudio' ), 
	'description'   => __( 'Third footer widget area', 'CFAStudio' ),
	'id' => 'footer-3',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Footer Four	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Footer Four', 'CFAStudio' ), 
	'description'   => __( 'Fourth footer widget area', 'CFAStudio' ),
	'id' => 'footer-4',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Lets register widget sidebars
}
add_action( 'widgets_init', 'gp_widgets_init' );

/**
 * Count the number of footer sidebars to enable dynamic classes for creating resizable widgets
 * Based on the classes from the twentyeleven theme
 */

function gp_footer_sidebar_class() {
	$count = 0;

	if ( is_active_sidebar( 'footer-1' ) )
		$count++;

	if ( is_active_sidebar( 'footer-2' ) )
		$count++;

	if ( is_active_sidebar( 'footer-3' ) )
		$count++;
		
	if ( is_active_sidebar( 'footer-4' ) )
		$count++;

	$class = '';

	switch ( $count ) {
		case '1':
			$class = 'one';
			break;
		case '2':
			$class = 'two';
			break;
		case '3':
			$class = 'three';
			break;
		case '4':
			$class = 'four';
			break;
	}

	if ( $class )
		echo 'class="' . $class . '"';
}

function gp_top_sidebar_class() {
	$count = 0;

	if ( is_active_sidebar( 'top-1' ) )
		$count++;

	if ( is_active_sidebar( 'top-2' ) )
		$count++;

	if ( is_active_sidebar( 'top-3' ) )
		$count++;
		
	if ( is_active_sidebar( 'top-4' ) )
		$count++;

	$class = '';

	switch ( $count ) {
		case '1':
			$class = 'one';
			break;
		case '2':
			$class = 'two';
			break;
		case '3':
			$class = 'three';
			break;
		case '4':
			$class = 'four';
			break;
	}

	if ( $class )
		echo 'class="' . $class . ' clearfix"';
}

function gp_bottom_sidebar_class() {
	$count = 0;

	if ( is_active_sidebar( 'bottom-1' ) )
		$count++;

	if ( is_active_sidebar( 'bottom-2' ) )
		$count++;

	if ( is_active_sidebar( 'bottom-3' ) )
		$count++;
		
	if ( is_active_sidebar( 'bottom-4' ) )
		$count++;

	$class = '';

	switch ( $count ) {
		case '1':
			$class = 'one';
			break;
		case '2':
			$class = 'two';
			break;
		case '3':
			$class = 'three';
			break;
		case '4':
			$class = 'four';
			break;
	}

	if ( $class )
		echo 'class="' . $class . ' clearfix"';
}
=======
<?php // Register sidebars
  
// Check for widgets in widget-ready areas http://wordpress.org/support/topic/190184?replies=7#post-808787
// Thanks to Chaos Kaizer http://blog.kaizeku.com/
  
      function is_sidebar_active( $index = 1){
       $sidebars = wp_get_sidebars_widgets();
       $key  = (string) 'sidebar-'.$index;
       return (isset($sidebars[$key]));
      }
// Lets layout the sidebars for widgets	  
function gp_widgets_init() {
	  
// Top Right Header language
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Page Top Right', 'CFAStudio' ), 
    'id' => 'sidebar-topright',
	'description'   => __( 'Top Right where the Language Switcher Sits', 'CFAStudio' ),
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));

// Blog Left Column    
if(function_exists('register_sidebar'))
    register_sidebar(array(
    'name' => __( 'Blog Left Column', 'CFAStudio' ), 
    'description'   => __( 'Left column with an active area of 180 pixels wide for your blog', 'CFAStudio' ),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
));

// Page Left Column	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Page Left Column', 'CFAStudio' ), 
	'description'   => __( 'Left column with an active area of 180 pixels wide for your blog', 'CFAStudio' ),
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
/*
// Blog Right Column	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Blog Right Column', 'CFAStudio' ), 
	'description'   => __( 'Right column with an active area of 180 pixels wide for your blog', 'CFAStudio' ),
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Page Right Column	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Page Right Column', 'CFAStudio' ), 
	'description'   => __( 'Left column with an active area of 180 pixels wide for your blog', 'CFAStudio' ),
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));

// Front Page Top One	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Top One', 'CFAStudio' ), 
	'description'   => __( 'Front Page Top widget one.', 'CFAStudio' ),
	'id' => 'top-1',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Top Two
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Top Two', 'CFAStudio' ), 
	'description'   => __( 'Front Page Top widget two.', 'CFAStudio' ),
	'id' => 'top-2',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Top Three	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Top Three', 'CFAStudio' ), 
	'description'   => __( 'Front Page Top widget three.', 'CFAStudio' ),
	'id' => 'top-3',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Top Four	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Top Four', 'CFAStudio' ), 
	'description'   => __( 'Front Page Top widget four.', 'CFAStudio' ),
	'id' => 'top-4',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Bottom One	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Bottom One', 'CFAStudio' ), 
	'description'   => __( 'Front Page Bottom widget one.', 'CFAStudio' ),
	'id' => 'bottom-1',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Bottom Two
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Bottom Two', 'CFAStudio' ), 
	'description'   => __( 'Front Page Bottom widget two.', 'CFAStudio' ),
	'id' => 'bottom-2',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Bottom Three	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Bottom Three', 'CFAStudio' ), 
	'description'   => __( 'Front Page Bottom widget three.', 'CFAStudio' ),
	'id' => 'bottom-3',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
// Front Page Bottom Four	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Bottom Four', 'CFAStudio' ), 
	'description'   => __( 'Front Page Bottom widget four.', 'CFAStudio' ),
	'id' => 'bottom-4',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3 class="home">',
	'after_title' => '</h3>',
));
*/
// Footer One	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Footer One', 'CFAStudio' ), 
	'description'   => __( 'First footer widget area', 'CFAStudio' ),
	'id' => 'footer-1',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Footer Two	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Footer Two', 'CFAStudio' ), 
	'description'   => __( 'Second footer widget area', 'CFAStudio' ),
	'id' => 'footer-2',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Footer Three	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Footer Three', 'CFAStudio' ), 
	'description'   => __( 'Third footer widget area', 'CFAStudio' ),
	'id' => 'footer-3',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Footer Four	
if(function_exists('register_sidebar'))
	register_sidebar(array(
	'name' => __( 'Footer Four', 'CFAStudio' ), 
	'description'   => __( 'Fourth footer widget area', 'CFAStudio' ),
	'id' => 'footer-4',
	'before_widget' => '<div id="%1$s" class="widget %2$s">',
	'after_widget' => '</div>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));
// Lets register widget sidebars
}
add_action( 'widgets_init', 'gp_widgets_init' );

/**
 * Count the number of footer sidebars to enable dynamic classes for creating resizable widgets
 * Based on the classes from the twentyeleven theme
 */

function gp_footer_sidebar_class() {
	$count = 0;

	if ( is_active_sidebar( 'footer-1' ) )
		$count++;

	if ( is_active_sidebar( 'footer-2' ) )
		$count++;

	if ( is_active_sidebar( 'footer-3' ) )
		$count++;
		
	if ( is_active_sidebar( 'footer-4' ) )
		$count++;

	$class = '';

	switch ( $count ) {
		case '1':
			$class = 'one';
			break;
		case '2':
			$class = 'two';
			break;
		case '3':
			$class = 'three';
			break;
		case '4':
			$class = 'four';
			break;
	}

	if ( $class )
		echo 'class="' . $class . '"';
}

function gp_top_sidebar_class() {
	$count = 0;

	if ( is_active_sidebar( 'top-1' ) )
		$count++;

	if ( is_active_sidebar( 'top-2' ) )
		$count++;

	if ( is_active_sidebar( 'top-3' ) )
		$count++;
		
	if ( is_active_sidebar( 'top-4' ) )
		$count++;

	$class = '';

	switch ( $count ) {
		case '1':
			$class = 'one';
			break;
		case '2':
			$class = 'two';
			break;
		case '3':
			$class = 'three';
			break;
		case '4':
			$class = 'four';
			break;
	}

	if ( $class )
		echo 'class="' . $class . ' clearfix"';
}

function gp_bottom_sidebar_class() {
	$count = 0;

	if ( is_active_sidebar( 'bottom-1' ) )
		$count++;

	if ( is_active_sidebar( 'bottom-2' ) )
		$count++;

	if ( is_active_sidebar( 'bottom-3' ) )
		$count++;
		
	if ( is_active_sidebar( 'bottom-4' ) )
		$count++;

	$class = '';

	switch ( $count ) {
		case '1':
			$class = 'one';
			break;
		case '2':
			$class = 'two';
			break;
		case '3':
			$class = 'three';
			break;
		case '4':
			$class = 'four';
			break;
	}

	if ( $class )
		echo 'class="' . $class . ' clearfix"';
}
>>>>>>> .r6
?>